
export function getSafeClip() {
    const link = getClip()
    if (link) return link;
    let dis = threads.disposable()
    var w = floaty.window(
        `<frame gravity="center" bg="#ffffff">
          <text id="text"></text>
        </frame>`
    );
    ui.run(function () {
        w.requestFocus();
        setTimeout(() => {
            dis.setAndNotify(getClip())
            w.disableFocus();
            w.close();
        }, 10);
    });
    const link2 = dis.blockedGet()
    return link2;
}